import { defHttp } from '/@/utils/http/axios';

enum Api {
  taskCenterList = '/taskCenter.taskCenter/getList',
  getUserNameList = '/taskCenter.taskCenter/getUserNameList',
  taskCenterAdd = '/taskCenter.taskCenter/add',
  taskCenterAddList = '/taskCenter.taskCenter/addList',
  taskCenterDel = '/taskCenter.taskCenter/del',
  taskUserList = '/taskCenter.taskUser/getList',
  myTaskUserList = '/taskCenter.taskCenter/myTaskUserList',
  taskUserDel = '/taskCenter.taskUser/del',
  taskUserPass = '/taskCenter.taskUser/taskUserPass',
  taskUserNoPass = '/taskCenter.taskUser/taskUserNoPass',
  queryComplete = '/taskCenter.taskCenter/queryComplete',
  queryUnCompleteCount = '/taskCenter.taskCenter/queryUnCompleteCount',
  initNewTaskWeek = '/taskCenter.taskCenter/initNewTaskWeek',
  importTask = '/taskCenter.taskCenter/importTask',
}

export const TaskCenterList = (params?: any) => defHttp.get<any>({ url: Api.taskCenterList, params });
export const queryComplete = (params?: any) => defHttp.get<any>({ url: Api.queryComplete, params });
export const queryUnCompleteCount = (params?: any) => defHttp.get<any>({ url: Api.queryUnCompleteCount, params });
export const myTaskUserList = (params?: any) => defHttp.get<any>({ url: Api.myTaskUserList, params });
export const getUserNameList = (params?: any) => defHttp.get<any>({ url: Api.getUserNameList, params });
export const  TaskCenterAdd = (params?: any) => defHttp.post<any[]>({ url: Api.taskCenterAdd, params });
export const  TaskCenterDel = (params?: any) => defHttp.post<any[]>({ url: Api.taskCenterDel, params });
export const  TaskUserList = (params?: any) => defHttp.post<any[]>({ url: Api.taskUserList, params });
export const  TaskUserDel = (params?: any) => defHttp.post<any[]>({ url: Api.taskUserDel, params });
export const  TaskUserPass = (params?: any) => defHttp.post<any[]>({ url: Api.taskUserPass, params });
export const  TaskUserNoPass = (params?: any) => defHttp.post<any[]>({ url: Api.taskUserNoPass, params });
export const  initNewTaskWeek = (params?: any) => defHttp.post<any[]>({ url: Api.initNewTaskWeek, params });
export const  taskCenterAddList = (params?: any) => defHttp.post<any[]>({ url: Api.taskCenterAddList, params });
export const  importTask = (params?: any) => defHttp.post<any[]>({ url: Api.importTask, params });
